#
# Awesome makefile, yeah whatever Stallman, I know I didn't use macros get 
# off my case.
#
# @author Jonathan Walsh (jdw74@drexel.edU)
#
CFLAGS=-g -O3 -Wall -Werror
CC=gcc

all: test_reader cc_reader interactive raw_reader

reader.o: reader.c reader.h
	$(CC) $(CFLAGS) -c reader.c -o reader.o

test_reader: test_reader.c reader.o
	$(CC) $(CFLAGS) test_reader.c reader.o -o test_reader

cc_reader: cc_reader.c reader.o
	$(CC) $(CFLAGS) cc_reader.c reader.o -o cc_reader

raw_reader: raw_reader.c reader.o
	$(CC) $(CFLAGS) raw_reader.c reader.o -o raw_reader

interactive: interactive.c reader.o
	$(CC) $(CFLAGS) interactive.c reader.o -o interactive

clean:
	rm -f test_reader cc_reader interactive raw_reader reader.o
